﻿using System.Globalization;
using System.Windows.Data;
using Brushes = System.Windows.Media.Brushes;

namespace VideoTools.Converters
{

    public class SubtitleImportColorConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if(parameter == null || parameter.Equals(AppConstants.ImportDone))
            {
                return Brushes.Green;
            }
            else
            {
                return Brushes.Red;
            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}